package com.hmy.contract.bo.request.authorizermodify;

import com.hmy.contract.bo.request.contract.OrderAuthorizerRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SaveAuthorizerModifyRequest {

    /**
     * 授权人信息变更id
     */
    private Long modifyId;

    /**
     * 任务id
     */
    private Long taskId;

    /**
     * 合同id
     */
    @NotNull(message = "合同id不能为空")
    private Long contractId;

    /**
     * 授权人信息
     */
    @NotEmpty(message = "授权人变更信息不能为空")
    private List<OrderAuthorizerRequest> currAuthorizerInfo;

    @NotBlank(message = "纸质授权路径不能为空")
    private String fileUrl;

    /**
     * 变更原因
     */
    private String modifyReason;

}
